<?php

class AddToneBoxEvt extends BaseUpdateEvt{
	
	function __construct($portalAccount, $portalPwd, $portalType, $role, $roleCode, $name, $toneID, $toneCode)
	 {
	 	parent::__construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode);
	 	
	 	$this->name = $name;
	 	$this->toneID = $toneID;
	 	$this->toneCode = $toneCode;
	 }
	
	public $objectRole;
	
	public $objectCode;
	
	public $name;
	
	public $toneBoxCode;
		
	public $type;
	
	public $feeType;
	 
	public $canSplit;
	 
	public $canUpdate;
	 
	public $price;

	public $toneValidDay;
		 
	public $description;
		
	public $toneID;
	
	public $toneCode;
		
	public $toneOffsets;
		
	public $toneEndOffsets;
		
	public $toneFileNames;
		
	public $relativeTime;
	
	public $enabledDate;		
}


class DelToneBoxEvt extends BaseUpdateEvt
{
	function __construct($portalAccount,  $portalPwd, $portalType, $moduleCode, $role, $roleCode, $objectRole, $objectCode, $type, $tableType, $toneBoxID)
	{
		parent::__construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode);

		$this->objectRole 	= $objectRole;
		$this->objectCode 	= $objectCode;
		$this->type 		= $type;
		$this->tableType	= $tableType;
		$this->toneBoxID	= $toneBoxID;
	}
	
	public $objectRole;
	public $objectCode;
	public $type;
	public $tableType;
	public $toneBoxID;
	
}

class EditToneBoxEvt extends BaseUpdateEvt
{
	
}

class QueryToneBoxEvt extends BaseQueryEvt
{
	function __construct($portalAccount, $portalPwd, $portalType, $startRecordNum = null, $endRecordNum = null, $queryType, $ownertype, $ownerid)
	 {
	 	parent::__construct($portalAccount, $portalPwd, $portalType, $startRecordNum, $endRecordNum, $queryType);
	 		 	
	 	$this->ownertype		= $ownertype;
	 	$this->ownerid 			= $ownerid;
	 	
	 }
	 
	 public $toneBoxID;
	 public	$toneBoxCode;
	 public $toneBoxType;
	 public $approveType;
	 public $askType;
	 public $ownertype;
	 public $ownerid;
	 public $toneBoxName;
	 public $feeType;
	 public $canSplit;
	 public $canUpdate;
	 public $minPrice;
	 public $maxPrice;
	 public $minOrderTimes;
	 public $maxOrderTimes;
	 public $beginUploadTime;
	 public $endUploadTime;
	 public $beginUpdateTime;
	 public $endUpdateTime;
	 public $status;
	 public $orderType;
	 public $orderBy;
	 public $timeFlag;
	 public $relativeTime;
}
?>